local mianmiam = fk.CreateSkill {
    name = "cf_firemode_mianmianjudao",
    tags = { Skill.Compulsory },
}

mianmiam:addEffect(fk.EventPhaseStart, {
    anim_type = "drawcard",
    can_trigger = function(self, event, target, player, data)
        if not player:hasSkill(self.name) then return false end
        return target == player and target.phase == Player.Start
    end,
    on_cost = Util.TrueFunc,
    on_use = function(self, event, target, player, data)
        local room = player.room
        local s = { "trick", "basic" }
        for i = 1, 2 do
            local cards = room:getCardsFromPileByRule(".|.|.|.|.|" .. s[i], 1)
            if #cards > 0 then
                room:obtainCard(player, cards[1], false, fk.ReasonJustMove)
            end
        end
    end,
})

Fk:loadTranslationTable {
    ["cf_firemode_mianmianjudao"] = "面面俱到",
    [":cf_firemode_mianmianjudao"] = "锁定技，准备阶段，从牌堆里获得基本，锦囊牌各一张",
}

return mianmiam
